basic counting techniques